<template>
  <div style="padding:0">
    <Company ref="Company" :isEdit="isEdit" :isCheck="isCheck" :jurisdictionControl="jurisdictionControl" :parentId="parentId"></Company>
  </div>
</template>
<script>
import Company from "@/components/Company/Company";
export default {
  name: 'checkCompany',
  components: {
    Company,
  },
  data() {
    return {
      isEdit: false,
      isCheck: false,
      jurisdictionControl: {
        J_AddDep: false, // 新增部门
        J_EditDep: false, // 修改部门
        J_DelDep: false, // 删除部门
        J_AddFirm: false, // 新增企业
        J_EditFirm: false, // 修改企业
        J_DelFirm: false, // 删除企业
        J_SetPrincipal: false, //设置部门负责人
      },
      parentId: "",
    };
  },
  methods: {},
  mounted() {
    this.jurisdictionControl = JSON.parse(
      this.$route.query.jurisdictionControl
    ); // 权限
    if (this.$route.query.isAdd) {
      // 新增下级
      this.parentId = this.$route.query.subid;
    }
    this.$refs.Company.openAccount();
    if (this.$route.query.isEdit) {
      // 编辑
      this.$refs.Company.edit();
    }
    this.isEdit = this.$route.query.isEdit;
    this.isCheck = this.$route.query.isCheck;
  },
  activated() { },
};
</script>
<style lang="less">
</style>
